Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 7d8f5cb8549aeb67f6d7e1cc66085cc9d4a34d36


Parents : 6e2d5ba
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-05-02T04:36:00-05:00

feat(database): add method to retrieve favourite destinations by destination hash

Changes

1 files changed, 6 insertions(+), 0 deletions(-)


Diff

diff --git a/meshchatx/src/backend/database/announces.py b/meshchatx/src/backend/database/announces.py
index 4235a79a..5949e281 100644
--- a/meshchatx/src/backend/database/announces.py
+++ b/meshchatx/src/backend/database/announces.py
@@ -191,6 +191,12 @@ class AnnounceDAO:
(destination_hash, display_name, aspect, now, now),
)
+ def get_favourite_by_destination_hash(self, destination_hash):
+ return self.provider.fetchone(
+ "SELECT * FROM favourite_destinations WHERE destination_hash = ?",
+ (destination_hash,),
+ )
+
def get_favourites(self, aspect=None):
if aspect:
return self.provider.fetchall(


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────